import java.util.Scanner;

public class LeapYear {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入需要判断的年份");
        int n = scan.nextInt();
        if (n % 100 == 0) {
            if (n % 400 == 0) {
                System.out.println(n + "是闰年");
            } else {
                System.out.println(n + "不是闰年");
            }
        } else if (n % 4 == 0) {
            System.out.println(n + "是闰年");
        } else {
            System.out.println(n + "不是闰年");
        }
    }
}
